package app.netmorphgui.tabs;

import java.awt.Dimension;

import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;

import app.netmorphgui.NetmorphModelView;


public class JNetmorphParamTab extends JTabbedPane {

	NetmorphModelView model;

	public JNetmorphParamTab(NetmorphModelView model)
	{
		this.model = model;
		
		setPreferredSize(new Dimension(450, 800));

		
		// add
		JScrollPane jsp;
		
		jsp = new JScrollPane(model.general);
		addTab(model.general.getTitle(), jsp);
		
		jsp = new JScrollPane(model.region);
		addTab(model.region.getTitle(), jsp);
		
		jsp = new JScrollPane(model.environment);
		addTab(model.environment.getTitle(), jsp);
		
		jsp = new JScrollPane(model.output);
		addTab(model.output.getTitle(), jsp);

		jsp = new JScrollPane(model.allDendrites);
		addTab(model.allDendrites.getTitle(), jsp);

		jsp = new JScrollPane(model.apical);
		addTab(model.apical.getTitle(), jsp);

		jsp = new JScrollPane(model.axon);
		addTab(model.axon.getTitle(), jsp);
	}
}
